<form action="{'Instock/update'|U}" method="POST" beforeSubmit="checkInstockRate">
<input type="hidden" name="logistics_norms" id="logistics_norms" value="{C("FUND_LOGISTICS_NORMS")}">
{wz action="save,list,reset"}
<div class="add_box">
<input type="hidden" name="id" value="{$rs.id}">
<input type="hidden" name="load_container_id" value="{$rs.load_container_id}">
<table cellspacing="0" cellpadding="0" class="add_table">
	<tbody>
		<tr>
			<th colspan="4">{$lang.title_1}</th>
		</tr>
		<tr>
			<td colspan="4">
				<div class="basic_tb">  
					<ul> 
						<li>
							<input type="hidden" name="flow" id="flow" value="instock">
							{$lang.instock_no}：{$rs.instock_no}
						</li>
						<li>{$lang.container_no}：
      							<input type="hidden" name="container_no" value="{$rs.container_no}">
      							{$rs.container_no}
      					</li>
						<li>{$lang.trans_comp}：
      							<input type="hidden" name="logistics_id" value="{$rs.logistics_id}">
      							{$rs.logistics_name}
     					</li> 
						{if C('instock.add')==2}
						<li>{$lang.load_date}：
       							<input type="hidden" name="get_date" value="{$rs.get_date}">
      							{$rs.fmd_get_date}
      					</li>
						<li>{$lang.delivery_date}：
      							<input type="hidden" name="go_date" value="{$rs.go_date}">
      							{$rs.fmd_go_date}
      					</li>
						<li>{$lang.arrive_date}：
      							<input type="hidden" name="arrive_date" value="{$rs.arrive_date}">
      							{$rs.fmd_arrive_date}
      					</li>
      					{/if}
						<li>{$lang.real_arrive_date}：
						{if $rs.funds.logistics||$rs.fund.factory}
							{$rs.fmd_real_arrive_date}
						{else}
							<input type="text" name="real_arrive_date" class="Wdate spc_input" onClick="WdatePicker()" value="{$rs.fmd_real_arrive_date}"/>__*__
						{/if}
						</li>    
						{if C('instock.instock_logistics_funds')==1}
						<li>{$lang.trans_price}：
							<input type="text"  name="delivery_fee" id="total_delivery_fee" value="{$rs.edml_delivery_fee}" {if $rs.funds.logistics} readonly class="spc_input disabled"{else}class="spc_input"{/if}>
						</li>
						{if $rs.funds.logistics}
							{currency data=C('LOGISTICS_CURRENCY') name="currency_id"  type='li' title=$lang.trans_price_currency value=$rs.currency_id view=true  require=""}
						{else}
							{currency data=C('LOGISTICS_CURRENCY') name="currency_id"  type='li' title=$lang.trans_price_currency value=$rs.currency_id  require=""}
						{/if}
						{/if}
						
						{warehouse type="li" title=$lang.warehouse hidden=["name"=>"warehouse_id","value"=>$rs.warehouse_id]  name="warehouse_name" value=$rs.w_name require=""}
						

					</ul>
				</div>  	
  			</td>
  		</tr> 
    	<tr>
    		<th colspan="4">{$lang.title_2}</th></tr>
    	<tr>
    		<td colspan="4" class="t_center">
    		{if C('instock.add')==2}
    			{include file="Instock/flow_detail.tpl"}
    		{else}
    			{include file="Instock/detail.tpl"}
    		{/if}
    		</td>
    	</tr>
    	<tr>
    		<td colspan="4">
    			<table cellspacing="0" cellpadding="0" width="100%">
    				<tr>
	   					<td valign="top" width="15%">{$lang.comments}：</td>
	   					<td colspan="3" class="t_left" valign="top"><textarea name="comments" id="comments" class="textarea_height80">{$rs.edit_comments}</textarea> </td>
					</tr>
	    		</table>
	    	</td>
	    </tr> 	    
    </tbody>
</table>
   {staff add_user="`$rs.add_real_name`" create="`$rs.fmd_create_time`" id="`$rs.add_user`"}
</div>
</form>